package com.shelpe.services.scheduler.syncclient;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.shelpe.services.scheduler.dto.CampaignsDto;
import com.shelpe.services.scheduler.dto.RptCampaignDto;


@FeignClient(name="${simbasync.serviceID}", url="${simbasync.url}")
@RequestMapping(value = "/simbasync")
public interface CampaignClient {

	@RequestMapping(method = RequestMethod.GET, value = "/tenants/{user_id}/@SingleThread")
	public CampaignsDto syncCampaignsByUserIdSingleThread(@PathVariable("user_id") long userId);
	
	@RequestMapping(method = RequestMethod.GET, value = "/tenants/{user_id}/@rptcampaign")
	public RptCampaignDto syncRptCampaignsByUserId(@PathVariable("user_id")  long userId, @RequestParam("record") String record);
	
}
